package com.ljf.daily.consumptiondetail.service;

import com.ljf.common.exception.ServiceException;
import com.ljf.common.result.ServiceResultModel;
import com.ljf.common.service.IBasisService;
import com.ljf.daily.consumptiondetail.dto.command.DailyDatConsumptionDetailCommand;
import com.ljf.daily.consumptiondetail.dto.command.DailyDatConsumptionDetailGenerateDataCommand;
import com.ljf.daily.consumptiondetail.dto.query.DailyDatConsumptionDetailQuery;
import com.ljf.daily.consumptiondetail.vo.DailyDatConsumptionDetailEditDataVO;
import com.ljf.daily.consumptiondetail.vo.DailyDatConsumptionDetailVO;

import java.util.Date;

/**
 * 日常消费明细  服务接口定义
 * 
 * @author LJF
 * @since 2024-05-10
 */
public interface IDailyDatConsumptionDetailService extends IBasisService<DailyDatConsumptionDetailQuery, DailyDatConsumptionDetailVO, DailyDatConsumptionDetailCommand> {

    /**
     * 生成数据接口
     *
     * @param command
     * @return
     * @throws ServiceException
     */
    ServiceResultModel generateData(DailyDatConsumptionDetailGenerateDataCommand command) throws ServiceException;

    /**
     * 获取更新数据
     *
     * @param date
     * @param dayConsumption
     * @return
     * @throws ServiceException
     */
    ServiceResultModel<DailyDatConsumptionDetailEditDataVO> editData(Date date, String dayConsumption) throws ServiceException;

}
